/**
 * 
 */
package cw.serviceImp;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cw.entity.Member;
import cw.mapper.MemberMapper;
import cw.service.MemberService;

/**
 * @author Administrator
 *
 */
@Service("memberService")
public class MemberServiceImpl implements MemberService {

	@Resource
	private MemberMapper memberMapper;
	
	/* (non-Javadoc)
	 * @see cw.service.MemberService#deleteByPrimaryKey(java.lang.Integer)
	 */
	@Override
	public int deleteByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return memberMapper.deleteByPrimaryKey(id);
	}

	/* (non-Javadoc)
	 * @see cw.service.MemberService#insert(cw.entity.Member)
	 */
	@Override
	public int insert(Member record) {
		// TODO Auto-generated method stub
		return memberMapper.insert(record);
	}

	/* (non-Javadoc)
	 * @see cw.service.MemberService#insertSelective(cw.entity.Member)
	 */
	@Override
	public int insertSelective(Member record) {
		// TODO Auto-generated method stub
		return memberMapper.insertSelective(record);
	}

	/* (non-Javadoc)
	 * @see cw.service.MemberService#selectByPrimaryKey(java.lang.Integer)
	 */
	@Override
	public Member selectByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return memberMapper.selectByPrimaryKey(id);
	}

	/* (non-Javadoc)
	 * @see cw.service.MemberService#updateByPrimaryKeySelective(cw.entity.Member)
	 */
	@Override
	public int updateByPrimaryKeySelective(Member record) {
		// TODO Auto-generated method stub
		return memberMapper.updateByPrimaryKeySelective(record);
	}

	/* (non-Javadoc)
	 * @see cw.service.MemberService#updateByPrimaryKey(cw.entity.Member)
	 */
	@Override
	public int updateByPrimaryKey(Member record) {
		// TODO Auto-generated method stub
		return memberMapper.updateByPrimaryKey(record);
	}

	/* (non-Javadoc)
	 * @see cw.service.MemberService#queryMember(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.Integer, java.lang.Integer)
	 */
	@Override
	public List<Member> queryMember(String teamName, String description,
			String identity, String teamId, Integer offset, Integer pageSize) {
		// TODO Auto-generated method stub
		return memberMapper.queryMember(teamName, description, identity, teamId, offset, pageSize);
	}

	/* (non-Javadoc)
	 * @see cw.service.MemberService#getTotal(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
	 */
	@Override
	public Integer getTotal(String teamName, String description,
			String identity, String teamId) {
		// TODO Auto-generated method stub
		return memberMapper.getTotal(teamName, description, identity, teamId);
	}

}
